#if defined(WIN32)
	// Visual C++ Memory leak detector headers
	#define _CRTDBG_MAP_ALLOC
	#include <stdlib.h>
	#include <crtdbg.h>
#endif

#include <scott/LastLoadedFirstNameResolutor.h>
#include "Shell.h"

/**
 * The entry point of the SCOTT Shell application.
 */
int main(int argc, char* argv[])
{
	cout << endl << "*** Welcome in SCOTT Shell ***" << endl << endl;

	// Creation of the name resolutor to use
	INameResolutorSp nameResolutor = LastLoadedFirstNameResolutorSp( new LastLoadedFirstNameResolutor() ); 

	// Creation and starting of the shell
	Shell::Create(nameResolutor)->Start();

#if defined(WIN32)

	// Show the presence of memory leaks with Visual C++
	_CrtDumpMemoryLeaks();

#endif

	cin.get();
};
